﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EMoney.IStock.Client.DataAccess
{
    public class TradeDateDal
    {
        /// <summary>
        /// 获取最新交易日期
        /// </summary>
        /// <returns></returns>
        public DateTime? GetMaxTradeDate()
        {
            object obj = SQLHelper.ExecuteScalar(ConnectionManager.Fplat, System.Data.CommandType.StoredProcedure, "SP_GET_MAXTRADEDATE", null);

            if (obj != null && obj != DBNull.Value)
            {
                return Convert.ToDateTime(obj);
            }
            else
            {
                return null;
            }
        }
    }
}
